{% extends 'AdminsBundle:base:main.content.lists.div.html.twig' %}
{% block options %}
    <div class="menu-list">

    </div>
{% endblock %}
{% block tableHead %}
    <tr>
        <th width="6%">选择</th>
        <th align="left">标题</th>
        <th align="left" width="10%">浏览量</th>
        <th align="left" width="10%">更新时间</th>
        <th align="center" width="8%">排序</th>
        <th align="center" width="5%">管理</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Page in lists %}
        <tr>
            <td align="center">
                <span class="checkall" style="vertical-align:middle;">
                    <input type="checkbox" name="ids[]" value="{{ Page.id }}"/>
                </span>
            </td>
            <td align="left">{{ Page.title }}</td>
            <td align="left">{{ Page.count }}</td>
            <td align="left">{{ Page.updateTime | date("Y-m-d H:i:s") }}</td>

            <td align="center"><input id="val_{{ Page.id }}" type="text" value="{{ Page.orders }}"  class="sort" onkeydown="return checkNumber(event);"  onblur="__doPostBack('setAttr','id={{ Page.id }}&orders='+ $('#val_{{ Page.id }}').val())"></td>
            <td align="center">
                <a href="{{ path("PagePreEdit",{'id':Page.id}) }}" class="img-btn edit"></a>
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
    {#{% include 'AdminsBundle:base:inc.js.pic.upload.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.article.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.form.valid.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.date.picker.twig' %}#}
{% endblock %}

